Configuring TomEE

Once the TomEE is extracted, the user needs to customize their requirements so that the application runs on TomEE. This includes adding the required third-party jars, properties files, configuring data sources, and so on.

The catalina.properties file in the conf folder needs to be modified to make the TomEE container to pick custom configuration or jars defined by user.

Shared Locations:

shared.loader=${catalina.home}/shared/lib, ${catalina.home}/shared/lib/*.jar, ${catalina.home}/shared/conf

Continuing the same file we need to mention the coherence jar not to be scanned using JarScanner functionality. To achieve this in the same catalina.properties file, find the tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\ and add coherence*.jar.

Example:

tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\

...

cglib-*.jar,\

cobertura-*.jar,\

coherence*.jar,\

commons-beanutils*.jar,\

pdq*.jar,\

...

The above configurations are same for any instance of TomEE.

The system.properties file the conf directory needs to be modified by adding openejb.classloader.forced-load=com.oracle.ac,com.oracle.filter under blocklisted classes parameter.

openejb.classloader.forced-load=com.oracle.ac,com.oracle.filter